a=[3,1,6,5,2,7,4,8]